﻿using System.Collections.Generic;
using Shuba.Model;

namespace Shuba.Business
{
    public class Regional
    {
        private Data.Regional regional;

        public Regional()
        {
            regional = new Data.Regional();
        }

        public RegionalInfo Get(string id)
        {
            return regional.Get(id);
        }

        public List<RegionalInfo> GetListByHO(string value)
        {
            return regional.GetListByHO(value);
        }

        public List<RegionalInfo> GetListByCluster(string CLUSTER_ID)
        {
            return regional.GetListByCluster(CLUSTER_ID);
        }

        public List<RegionalInfo> GetListByUnit(string UnitCode)
        {
            return regional.GetListByUnit(UnitCode);
        }

        public string GetRegionIDByUnit(string UnitCode)
        {
            return regional.GetRegionIDByUnit(UnitCode);
        }

        public RegionalInfo GetApprovalByID(string id)
        {
            return regional.GetApprovalByID(id);
        }

        public List<RegionalInfo> GetList(string value, string CostCenter, string Nip, string AppID)
        {
            return regional.GetList(value, CostCenter, Nip, AppID);
        }

        public List<RegionalInfo> GetAll()
        {
            return regional.GetAll();
        }

        public List<RegionalInfo> GetListApproval(string value, string UpdateBy)
        {
            return regional.GetListApproval(value, UpdateBy.TrimEnd());
        }

        public List<RegionalInfo> GetRegionalRelation(string RegionalID)
        {
            return regional.GetDependency(RegionalID);
        }

        public void Save(RegionalInfo regionInfo)
        {
            regional.Save(regionInfo);
        }
   
        public void Approve(string RegionalId, string ActType)
        {
            regional.Approve(RegionalId, ActType);
        }

        public void Reject(string RegionalId)
        {
            regional.Reject(RegionalId);
        }
    }
}
